www.gusucode.com > VC 自编SQL数据库(服务端+客户端) > VC 自编SQL数据库(服务端+客户端)/code/www.NewXing.com/sql/Server/User.cpp
// User.cpp : implementation file // #include "stdafx.h" #include "miniSQL.h" #include "User.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CUser CUser::CUser() { } CUser::CUser( CString user, CString code, DWORD type, CString descrip = _T("") ) : m_user( user ), m_code( code ), m_type( type ), m_descrip( descrip ) {} CUser::~CUser() { } void CUser::Serialize( CArchive& ar ) { if( ar.IsStoring() ) { ar<<m_user; ar<<m_code; ar<<m_type; ar<<m_descrip; } else { ar>>m_user; ar>>m_code; ar>>m_type; ar>>m_descrip; } }